<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script>
			
			function Person(){
			this.nation="汉族";
			this.skinColor="黄色";
			}
			Person.prototype.nation=function(){
			return nation;
		}
			Person.prototype.skinColor=function(){
			return skinColor;
		}
			function Woman(){
				this.sex="女";
			}
			Woman.prototype.sex=function(){
				return sex;
			}
			Woman.prototype=new Person();
			var woman1=new Woman();
			document.write("民族："+woman1.nation+"<br/>肤色："+woman1.skinColor+"<br />性别："+woman1.sex);
			
		</script>
	</body>
</html>
